package com.freewater.springboot.demo.aop.api.aspect;

import org.springframework.aop.aspectj.annotation.AspectJProxyFactory;

public class Main {
    public static void main(String[] args) {
        AspectJProxyFactory proxyFactory = new AspectJProxyFactory();
        proxyFactory.setTarget(new SomeBusiness());
        proxyFactory.addAspect(Aspect1.class);
        SomeBusiness someBusiness = proxyFactory.getProxy();
        someBusiness.doSomething("freewater");
    }
}
